package com.gzhryc.shared_device.oem.code.member.dao.enums;

public class MemberTransferMoneyOrderEnum {

    public static enum HandleType {

        RefundProcessing(1, "充值退款"), TransferProcessing(2, "商户转账"), OfflineProcessing(3, "线下转账"), returnWallet(4, "提现退还钱包");

        private Integer index;
        private String note;

        HandleType(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            HandleType[] temp = HandleType.values();
            for (int i = 0; i < temp.length; i++) {
                HandleType item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }


    public static enum State {

        Check(1, "审核中"),Processing(2, "处理中"), Success(3, "提现成功"),Reject(4, "驳回");

        private Integer index;
        private String note;

        State(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            State[] temp = State.values();
            for (int i = 0; i < temp.length; i++) {
                State item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
